package ics314;

import java.awt.Point;
import java.util.Scanner;

public class Test {
	
	public static void main(String[] args){  // J: Added in some test dialogue, and the ability to set the OBS and the radial.
		
	  int obs;
	  int radial;
	  
	  Scanner scanner = new Scanner(System.in);
	  
	  System.out.print("Please select an OBS: ");  
	  obs = scanner.nextInt();
	  System.out.print("Please select a radial: ");
	  radial = scanner.nextInt();
	  
      RadioStation radio = new RadioStation("TST", radial, true, true, new Point(0, 0));
	  Vor theVOR = new Vor (obs, radio);
	  
	  if (theVOR.isGoingTo()) {
	    
	    System.out.println("The plane is going toward the station.");
	    
	  } else {
	    
	    System.out.println("The plane is going away from station.");
	    
	  }
	  System.out.println("The number of degrees off the desired heading is: " + theVOR.getDegreesOff());
	  
	}

}
